import Curd from './base/curd'
import http from './base/axios'

var curd = new Curd("book-chapter");

curd.queryByBookId = (bookId) => {
	return http.get(curd.root + 'list', {
		params: {
			bookId: bookId
		}
	}).then(resp => resp.data);
}

export default curd;
